package com.example.springboot.service.Impl;

import com.example.springboot.mapper.AdminMapper;
import com.example.springboot.pojo.Admin;
import com.example.springboot.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service

public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminMapper adminMapper;

    @Override
    public List<Admin> list() {
        return adminMapper.list();
    }

    @Override
    public Admin login(Admin admin) {
        return adminMapper.getByUsernameAndPassword(admin);

    }

    @Override
    public void login() {

    }
}
